package com.rainbow.seata.order.controller;

import com.rainbow.seata.common.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/")
public class TestController {
    @Autowired
    private OrderService orderService;


    @RequestMapping("/buy")
    @ResponseBody
    public String buy() throws Exception {

        return orderService.buy("test ");
    }

}
